<template>
  <div>
    <!-- 1.0 面包屑 -->
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item>{{level1}}</el-breadcrumb-item>
      <el-breadcrumb-item>{{level2}}</el-breadcrumb-item>
    </el-breadcrumb>
    <!-- 子组件传值父组件 -->
    <!-- <button @click="getParamsToparament">我要传值给父组件</button> -->
  </div>
</template>
<script>
export default {
  props: {
    level1: String,
    level2: String
  },
  methods:{
    getParamsToparament(){
      this.$emit('childEvent',{name:'商',age:334})

    }
  }
}
</script>
<style>
.el-breadcrumb {
  background-color: yellowgreen;
  height: 50px;
  line-height: 50px;
  padding-left: 10px;
}
</style>

